package com.atguigu.gmall.list.client.impl;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.list.client.ListFeignClient;
import com.atguigu.gmall.list.model.SearchParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.swing.event.ListDataListener;

/**
 * title: 服务降级类
 * author: Gyh
 * date:2023-04-26 19:29
 * Description:
 */
@Slf4j
@Component
public class ListDegradeFeignClient implements ListFeignClient {

    @Override
    public void incrHotScore(Long skuId) {
        log.error("[详情服务]执行了服务降级方法");
    }

    @Override
    public Result search(SearchParam searchParam) {
        log.error("[详情服务]执行了服务降级方法");
        return null;
    }
}
